{{!
  Copyright (c) HashiCorp, Inc.
  SPDX-License-Identifier: BUSL-1.1
~}}

<Secrets::DestinationHeader @destination={{@destination}} />

{{#each @destination.formFields as |field|}}
  {{#let (get @destination field.name) as |value|}}
    {{#if (includes field.name @destination.maskedParams)}}
      <InfoTableRow @label={{or field.options.label (to-label field.name)}}>
        <Hds::Badge @text={{this.credentialValue value}} @icon="check-circle" @color="success" />
      </InfoTableRow>
    {{else}}
      <InfoTableRow @label={{or field.options.label (to-label field.name)}} @value={{value}} />
    {{/if}}
  {{/let}}
{{/each}}